package com.bizframework.springhb.support.serialization.xstream.converter;

import org.hibernate.collection.PersistentBag;
import org.hibernate.collection.PersistentList;
import org.hibernate.collection.PersistentSet;

import com.thoughtworks.xstream.converters.collections.CollectionConverter;
import com.thoughtworks.xstream.mapper.Mapper;

public class HibernateCollectionConverter extends CollectionConverter {
        public HibernateCollectionConverter(Mapper mapper) {
                super(mapper);
        }

		public boolean canConvert(@SuppressWarnings("rawtypes") Class type) {
                return super.canConvert(type) 
                                || type == PersistentList.class
                                || type == PersistentSet.class
                                || type == PersistentBag.class;
        }
}